#!/bin/bash
if [ $# == 1 ]; then
	n=$1
else
	n=10
fi
s=""
while((n>=1))
do
	s="$((n%2))$s"
	((n=n/2))
done
echo $s
